﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/SystemManagers/SystemManagers.master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Import Namespace="Resources" %>
<%@ Import Namespace="ViewRes" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <%:SystemManagersStrings.UsersManagement%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptsContent" runat="server">
    <script src="<%:Url.Content("~/Scripts/Diploma.js")%>" type="text/javascript"> </script>
    <script type="text/javascript">

        var onFormsPostSuccess = 'loadData();';

        $(function () {
            loadUsers('<%=Url.RouteUrl("Default", new {controller = "SystemManagers", action = "GetAllStudents"})%>');
        });

        function loadUsers(link) {
            $("#usersList").load(link, function () {
            });
        }

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <span class="titletext">
        <%:SystemManagersStrings.UsersManagement%></span>
    <div style="white-space: nowrap; display: table;">
        <div class="container columnStyle">
            <div style="text-align: center;" class="largeText">
                <b>
                    <%:SystemManagersStrings.ChooseUsersType%></b>
            </div>
            <hr />
            <div id="usersTypes">
                <div>
                    <a href="javascript:void(0)" class="hoverable largeText" onclick=" loadUsers('<%=Url.RouteUrl("Default", new {controller = "SystemManagers", action = "GetAllStudents"})%>')">
                        <%:DiplomaResources.Students%></a>
                </div>
                <div>
                    <a href="javascript:void(0)" class="hoverable largeText" onclick=" loadUsers('<%=Url.RouteUrl("Default", new {controller = "SystemManagers", action = "GetAllLecturers"})%>')">
                        <%:DiplomaResources.Lecturers%></a>
                </div>
                <div>
                    <a href="javascript:void(0)" class="hoverable largeText" onclick=" loadUsers('<%=Url.RouteUrl("Default",
                                           new {controller = "SystemManagers", action = "GetAllStudentsGroups"})%>')">
                        <%:DiplomaResources.StudentsGroups%></a>
                </div>
            </div>
        </div>
        <div id="usersList" style="display: inline-block; height: 100%;">
        </div>
    </div>
</asp:Content>
